# 引入src中所有的函数
# import sys
# from os.path import dirname, join
# sys.path.append(join(dirname(__file__), "src"))
# from src import *
# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
from CSVRead_Class import CSVRead
class Human_Config:
    def __init__(self):
        self.csv_file = CSVRead()
    def get_config(self, row):
        self.human_index = int(self.csv_file.csv_read(row_index = row, col_index = 0))
        self.height = float(self.csv_file.csv_read(row_index = row, col_index = 1))
        self.mass = float(self.csv_file.csv_read(row_index = row, col_index = 2))
    def get_angle(self, row):
        self.left_angle = float(self.csv_file.csv_read(row_index = row, col_index = 3))
        self.right_angle = float(self.csv_file.csv_read(row_index = row, col_index = 4))
    def num_row(self):
        return self.csv_file.num_row